let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start");
                var _n74,
                    i =
                    (this && this.__extends) ||
                    ((_n74 = function n(t, e) {
                            return (_n74 =
                                Object.setPrototypeOf ||
                                ({
                                        __proto__: []
                                    }
                                    instanceof Array &&
                                    function(t, e) {
                                        t.__proto__ = e;
                                    }) ||
                                function(t, e) {
                                    for (var o in e) {
                                        Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                                    }
                                })(t, e);
                        }),
                        function(t, e) {
                            function o() {
                                this.constructor = t;
                            }
                            _n74(t, e),
                                (t.prototype =
                                    null === e ?
                                    Object.create(e) :
                                    ((o.prototype = e.prototype), new o()));
                        });
                Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.CivilizationCom = void 0);
                var r = t('UIComponent'),
                    a = t('ComUtils'),
                    s = t('LangCfg'),
                    c = (function(t) {
                        function e() {
                            return (null !== t && t.apply(this, arguments)) || this;
                        }
                        return (
                            i(e, t),
                            (e.prototype.onInit = function() {
                                t.prototype.onInit.call(this),
                                    (this._txtTitle = a.default.getComponent(
                                        cc.Label,
                                        this.view,
                                        'title/txtTitle'
                                    )),
                                    (this._txtTips = a.default.getComponent(
                                        cc.Label,
                                        this.view,
                                        'txtTips0'
                                    ));
                            }),
                            Object.defineProperty(e.prototype, 'data', {
                                get: function get() {
                                    return this._data;
                                },
                                set: function set(t) {
                                    this._data != t &&
                                        ((this._data = t), (this.view.active = null != t)),
                                        this.refresh();
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            (e.prototype.refresh = function() {
                                if (this._data) {
                                    (this._txtTitle.string = s.LangCfg.ins.getContent(
                                        this._data.name
                                    )),
                                    (this._txtTips.string = '');
                                    for (var t = 0; t < this._data.itemLevels.length; t++) {
                                        var e = this._data.itemLevels[t],
                                            o =
                                            ' ' +
                                            Math.round(0.01 * this._data.itemRands[t]) +
                                            '%\n';
                                        e < 1e3 && (this._txtTips.string += e + '级兔酱爆率' + o);
                                    }
                                }
                            }),
                            e
                        );
                    })(r.UIComponent);
                (o.CivilizationCom = c), console.log("end");
            module.exports =  e.exports;